import server from './server';

export const ticket = (data) => { // K线历史数据
    return server.get( '/ticket',{
        params: data
    })
}

export const RealTimeDeal = (data) => { // 实时成交数据
    return server.get( '/contract/trader',{
        params: data
    })
}

export const getPro = (data) => { // 行情列表
    return server.get( '/contract/symbols',{
        params: data
    })
}

export const getProSymbol = (data) => {
    return server.get( '/exchange/symbols',{
    })
}


export const getDepth = (data) => { //盘口、深度
    return server.get( '/getDepth',{
        params: data
    })
}



export const getProInfo = (data) => { //币种简介
    return server.get( '/exchange/get_code_info',{
        params: data
    })
}

export const getRate = (data) => { //获取汇率-自取
    return server.get( '/getRate',{
        params: data
    })
}